package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {

    User findByusername(String username);

    List<Menu> findMenulist(String username);

    PageResult pageQuery(QueryPageBean queryPageBean);

    User findByid(Integer id);

    Integer[] findroleids(Integer id);

    void add(User user, Integer[] roleids);

    void update(User user, Integer[] roleids);

    void deleteByid(Integer id);
}
